***********************************
*Psedo data stock repurchasing bias
***********************************
Disclaimer:
This publication contains pseudonymous data that has been specifically generated for illustrative and demonstration purposes only. The data presented does not reflect real-world observations, measurements, or results. Consequently, this data is not intended, nor should it be interpreted, to support, validate, or replicate the findings, conclusions, or claims presented in this publication. Any application or use of this pseudonymous data outside the context of this demonstration is inappropriate and may lead to inaccurate or misleading outcomes. Readers are urged to exercise caution and critical judgment when interpreting the illustrative data.


***analysis_main_sample.dta
This dataset contains the main sample in the paper. It is at the fund-firm-quarter (wficn-permno_ext-qt) level. Each variable is clarified as below. The variables used in the analysis are defined in detail in Appendix A of the paper.
*wficn: Fund identifier	
*permno_ext: Stock identifier
*qdate: Quarter of complete sale
*qt: Quarter of (potentia) repurchase	
*repurchase: Dummy variable Repurchase	
*prc_adj: Stock price at the time of sale	
*prc_purchase_avg: Average purchase prices before the sale	
*ret_sale_FIFO: Stock return based on FIFO principle	
*ret_sale_AVG: Stock return based on the trade-value-weighted average of all purchase prices before the sale
*Loser: Dummy variable Loser	
*winnerAVG: Dummy variable Winner	
*change: Stock position change before the complete sale	
*shares_rep: The number of shares repurchased	
*mdate_rep: The first month of quarter qt	
*exp_ratio: Fund expense ratio	
*turn_ratio: Fund turnover ratio	
*ranking_crsp_obj: Performance rank	
*volatility_mret: Return volatility	
*mtna_log: Fund size
*age: Fund age	
*pre_return3: Returns quarter t-1	
*pre_return4_6: Returns quarter t-2 
*pre_return7_9:	Returns quarter t-3 
*pre_return10_12: Returns quarter t-4	
*pre_return_year2: Returns quarters t-5 to t-8	
*pre_return_year3: Returns quarters t-9 to t-12
*permno_num: Numeric value of permno_ext		
*ncusip: Stock NCUSIP
*up: Dummy variable Up


***analysis_Ancerno_sample
This dataset contains the ANcerno sample in the paper. It is at the fund-firm-quarter (client-ncusip-qt) level. Each variable is clarified as below. The variables used in the analysis are defined in detail in Appendix A of the paper.
*client_mgr: Fund identifier		
*ncusip: Stock NCUSIP	
*qdate: Quarter of complete sale
*qt: Quarter of (potentia) repurchase
*repurchase: Dummy variable Repurchase(ANcerno)		
*ret_sale_AVG: Stock return based on the trade-value-weighted average of all purchase prices before the sale	
*Loser: Dummy variable Loser(ANcerno)		
*ncusip_code: Numeric value of ncusip


***Fund_flow2020
This dataset contains the monthly fund flow at the fund-month (wficn-mdate_flow) level. Each variable is clarified as below. The variables used in the analysis are defined in detail in Appendix A of the paper.
*wficn: Fund identifier	
*mdate_flow: Month	
*flow_month: The monthly fund flows	
*mtna: The total net assets in the month

***single_mgr_id2020
This dataset contains the identity of fund managers in single-managed funds at the fund-quarter (wficn-qd) level. Each variable is clarified as below. The variables used in the analysis are defined in detail in Appendix A of the paper.
*wficn: Fund identifier 	
*qd: Quarter	
*mgr_id: Fund manager ID	
*mgr_name: Fund manager name

***mgt_level_avg/mgt_level_one_fund
This dataset is at the fund manager-firm-quarter (mgr_id-permno_ext-qt) level. Each variable is clarified as below. The variables used in the analysis are defined in detail in Appendix A of the paper.
*mgr_id: Fund manager ID
*permno_ext: Stock identifier	
*qdate: Quarter of complete sale
*qt: Quarter of (potentia) repurchase	
*repurchase: Dummy variable Repurchase	
*Loser: Dummy variable Loser. In the dataset mgt_level_avg, the variable is based on average return experience across all funds the manager manages. In the dataset mgt_level_one_fund, the sample is restricted to managers managing one fund.

***ret_ncusip2020
This dataset contains the monthly stock returns at the stock-month (ncusip-mdate) level. Each variable is clarified as below. The variables used in the analysis are defined in detail in Appendix A of the paper.
*ncusip: Stock NCUSIP
*ret: Monthly stock return	
*mdate: Month	
*qt: Quarter

***Fund_ret
This dataset contains the monthly fund returns at the fund-month (wficn-mdate) level. Each variable is clarified as below. The variables used in the analysis are defined in detail in Appendix A of the paper.
*wficn: Fund identifier	
*mdate: Month	
*mret: Net monthly returns of the fund	
*mret_gross: Gross monthly returns of the fund (Net monthly returns of the fund	+ Expense ratio)


***Factors
The risk factors to compute monthly alphas obtained from Kenneth French's website: http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html.

***purchase_repurchase_positions
This dataset contains purchased or repurchased stock trades. It is at the fund-firm-quarter (wficn-permno_ext-qt) level. Each variable is clarified as below. The variables used in the analysis are defined in detail in Appendix A of the paper.
*wficn: Fund identifier	
*permno_ext: Stock identifier
*rdate: Report date of the position
*qt: Quarter of (potentia) repurchase
*date_rep: Repurchase date
*mdate_rep: Repurchase month		
*repurchase: Dummy variable Repurchase
*winnerAVG: Dummy variable Winner
*rep_volume: Value of stocks repurchased
*pur_volume: Value of stocks purchased

